import http from '@/utils/http';

// 标签列表
export async function getKnowledgeTagList(params) {
    return http.get('/base/knowledgeTag/list', params);
}

// 标签详情
export async function getKnowledgeTagDetail(params) {
    return http.get('/base/knowledgeTag/detail', params);
}

// 新增标签
export async function postKnowledgeTagAdd(data) {
    return http.post('/base/knowledgeTag/add', data);
}

// 编辑标签
export async function postKnowledgeTagEdit(data) {
    return http.post('/base/knowledgeTag/edit', data);
}

// 标签删除
export async function getKnowledgeTagDelete(params) {
    return http.get('/base/knowledgeTag/delete', params);
}

// 知识标签查询
export async function getKnowledgeTagDataList(params) {
    return http.get('/base/knowledgeTag/dataList', params);
}

// 文档知识点-保存
export async function postConnectKnowledgeTag(data) {
    return http.post('/doc/connectKnowledgeTag', data)
}

// 文档知识点-预览
export async function getRelKnowledgeTagList(params) {
    return http.get('/doc/relKnowledgeTagList', params)
}

// 获取onlyoffice的config
export async function postFileConfig(data) {
    return http.post('/backOnlyOffice/getFileConfig', data)
}
